﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Model
{
    public class RealTimeMatchs : Entity
    {

        public RealTimeMatchs() {
            this.TeamRank = 9999;
            this.HostTeamRank = 9999;
            this.GuestTeamRank = 9999;
        }

        public int MatchId { get; set; }

        public int LeagueId { get; set; }

        public int SeasonId { get; set; }

        public string LeagueName { get; set; }

        public string MatchSeason { get; set; }

        public string CurrRound { get; set; }

        public string ColorValue { get; set; }

        public int HostTeamId { get; set; }

        public string HostTeamName { get; set; }

        public string HostRank { get; set; }

        public int GuestTeamId { get; set; }

        public string GuestTeamName { get; set; }

        public string GuestRank { get; set; }

        [JsonConverter(typeof(ShortDateTimeConvert))]
        public DateTime MatchTime { get; set; }

        public int MatchYear { get; set; }

        public int Status { get; set; }

        public int HostScore { get; set; }

        public int HostHalfScore { get; set; }

        public int HostRedCard { get; set; }

        public int HostYellowCard { get; set; }

        public int GuestScore { get; set; }

        public int GuestHalfScore { get; set; }

        public int GuestRedCard { get; set; }

        public int GuestYellowCard { get; set; }

        public string TvChannel { get; set; }

        public int WinOdds { get; set; }

        public int DrowOdds { get; set; }

        public int LoseOdds { get; set; }

        public decimal CutWinChance { get; set; }

        public decimal CutDrawChance { get; set; }

        public decimal CutLoseChance { get; set; }

        public int AsiaTape { get; set; }

        public int ScoreTape { get; set; }

        public string GroupIndex { get; set; }

        public string TeamMark { get; set; }

        public int Removed { get; set; }

        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime CreateTime { get; set; }

        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime LastUpdateTime { get; set; }

        public int LeagueType { get; set; }

        public int Neutral { get; set; }

        public int HostAwayReverse { get; set; }

        public int HalfStartTime { get; set; }

        public int Host120Score { get; set; }

        public int HostSpotScore { get; set; }

        public int Guest120Score { get; set; }

        public int GuestSpotScore { get; set; }

        public int MatchType { get; set; }

        [JsonConverter(typeof(LongDateTimeConvert))]
        public DateTime UpdateTime { get; set; }

        [DapperIgnore]
        public int TeamRank { get; set; }

        [DapperIgnore]
        public int TeamIntegral { get; set; }

        [DapperIgnore]
        public int AllCount { get; set; }

        [DapperIgnore]
        public int WinCount { get; set; }

        [DapperIgnore]
        public int DrawCount { get; set; }

        [DapperIgnore]
        public int LoseCount { get; set; }

        [DapperIgnore]
        public int InCount { get; set; }

        [DapperIgnore]
        public int OutCount { get; set; }

        [DapperIgnore]
        public int GoalCount { get; set; }

        [DapperIgnore]
        public int HostIntegral { get; set; }

        [DapperIgnore]
        public int HostAllCount { get; set; }

        [DapperIgnore]
        public int HostWinCount { get; set; }

        [DapperIgnore]
        public int HostDrawCount { get; set; }

        [DapperIgnore]
        public int HostLoseCount { get; set; }

        [DapperIgnore]
        public int HostInCount { get; set; }

        [DapperIgnore]
        public int HostOutCount { get; set; }

        [DapperIgnore]
        public int HostGoalCount { get; set; }

        [DapperIgnore]
        public int HostTeamRank { get; set; }

        [DapperIgnore]
        public int GuestIntegral { get; set; }

        [DapperIgnore]
        public int GuestAllCount { get; set; }

        [DapperIgnore]
        public int GuestWinCount { get; set; }

        [DapperIgnore]
        public int GuestDrawCount { get; set; }

        [DapperIgnore]
        public int GuestLoseCount { get; set; }

        [DapperIgnore]
        public int GuestInCount { get; set; }

        [DapperIgnore]
        public int GuestOutCount { get; set; }

        [DapperIgnore]
        public int GuestGoalCount { get; set; }

        [DapperIgnore]
        public int GuestTeamRank { get; set; }

    }
}
